package com.assets.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 领用表
 * </p>
 *
 * @author xyk
 * @since 2021-04-22
 */
@Entity(tableName = "t_asset_receives")
public class Receives implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 领用id
     */
    @ColumnInfo(name = "receives_id")
    @PrimaryKey(autoGenerate = true)
    private Long receivesId;

    /**
     * 领用部门
     */
    @ColumnInfo(name = "receives_dept")
    private String receivesDept;

    /**
     * 领用人
     */
    @ColumnInfo(name = "receives_user")
    private String receivesUser;

    /**
     * 申请时间
     */
    @ColumnInfo(name = "reapply_date")
    private String reapplyDate;

    /**
     * 领用备注
     */
    @ColumnInfo(name = "receives_remark")
    private String receivesRemark;

    /**
     * 领用状态（0：驳回，1：申请中，2,：已审核，3：已发放，4：部分发放）
     */
    @ColumnInfo(name = "status")
    private String status;

    /**
     * 领用时间
     */
    @ColumnInfo(name = "receives_date")
    private String receivesDate;

    /**
     * 全部归还（1：是，2：否）
     */
    @ColumnInfo(name = "isreturn")
    private String isreturn;

    /**
     * 文本
     */
    @ColumnInfo(name = "text")
    private String text;

    /**
     * 存放位置
     */
    @ColumnInfo(name = "place")
    private String place;

    /**
     * 所属机构
     */
    @ColumnInfo(name = "company")
    private String company;

    /**
     * 股室类型
     */
    @ColumnInfo(name = "division")
    private String division;

    /**
     * 创建人
     */
    @ColumnInfo(name = "createuser")
    private String createuser;

    @ColumnInfo(name = "is_flag")
    private String isFlag;


    public Long getReceivesId() {
        return receivesId;
    }

    public void setReceivesId(Long receivesId) {
        this.receivesId = receivesId;
    }

    public String getReceivesDept() {
        return receivesDept;
    }

    public void setReceivesDept(String receivesDept) {
        this.receivesDept = receivesDept;
    }

    public String getReceivesUser() {
        return receivesUser;
    }

    public void setReceivesUser(String receivesUser) {
        this.receivesUser = receivesUser;
    }

    public String getReapplyDate() {
        return reapplyDate;
    }

    public void setReapplyDate(String reapplyDate) {
        this.reapplyDate = reapplyDate;
    }

    public String getReceivesRemark() {
        return receivesRemark;
    }

    public void setReceivesRemark(String receivesRemark) {
        this.receivesRemark = receivesRemark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getReceivesDate() {
        return receivesDate;
    }

    public void setReceivesDate(String receivesDate) {
        this.receivesDate = receivesDate;
    }

    public String getIsreturn() {
        return isreturn;
    }

    public void setIsreturn(String isreturn) {
        this.isreturn = isreturn;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getDivision() {
        return division;
    }

    public void setDivision(String division) {
        this.division = division;
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public String getIsFlag() {
        return isFlag;
    }

    public void setIsFlag(String isFlag) {
        this.isFlag = isFlag;
    }

    @Ignore
    public Receives() {
    }

    public Receives(Long receivesId, String receivesDept, String receivesUser,
                    String reapplyDate, String receivesRemark, String status,
                    String receivesDate, String isreturn, String text,
                    String place, String company, String division,
                    String createuser, String isFlag) {
        this.receivesId = receivesId;
        this.receivesDept = receivesDept;
        this.receivesUser = receivesUser;
        this.reapplyDate = reapplyDate;
        this.receivesRemark = receivesRemark;
        this.status = status;
        this.receivesDate = receivesDate;
        this.isreturn = isreturn;
        this.text = text;
        this.place = place;
        this.company = company;
        this.division = division;
        this.createuser = createuser;
        this.isFlag = isFlag;
    }

    @Override
    public String toString() {
        return "Receives{" +
                "receivesId='" + receivesId + '\'' +
                ", receivesDept='" + receivesDept + '\'' +
                ", receivesUser='" + receivesUser + '\'' +
                ", reapplyDate='" + reapplyDate + '\'' +
                ", receivesRemark='" + receivesRemark + '\'' +
                ", status='" + status + '\'' +
                ", receivesDate='" + receivesDate + '\'' +
                ", isreturn='" + isreturn + '\'' +
                ", text='" + text + '\'' +
                ", place='" + place + '\'' +
                ", company='" + company + '\'' +
                ", division='" + division + '\'' +
                ", createuser='" + createuser + '\'' +
                ", isFlag='" + isFlag + '\'' +
                '}';
    }
}